<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>到货验收--设备开箱检验form</title>

    <!--公用样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css"/>
    <!--页面样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/style.css"/>
    <!--Layui-->
    <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all"/>
    <!--extended-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/extended.css"/>
    <!--公用样式JS-->
    <script type="text/javascript" src="${re.contextPath}/plugin/jquery/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/comment.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/jquery.boot.js"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/tools/tool.js"></script>
    <script type="text/javascript" src="${re.contextPath}/pageoffice.js" id="po_js_main"></script>
</head>
<style>
    .windows {
        background-color: #f8f8f8;
    }

    .popUp {
        width: 90%;
    }


</style>

<body>
<div class="windows">

    <div class="popUp whitebg">
        <div class="popUpTitle ft24 bold">设备开箱检验报告</div>
        <div class="clearfix mt10">
            <span class="fl">SDZZ-QR025</span>
            <span class="fr">KXJY<input id="orderCode" name="orderCode" code="${orderCode}" value="${orderCode}"></span>
        </div>
        <div class="popUpBox book">

            <form action="" class="layui-form addform">

                <div class="popUpBox acceptance">
                    <table>
                        <tr>
                            <td>工程名称</td>
                            <td colspan="2">
                                <input type="hidden" name="spfPrjid" value="${spf_prjid}">
                                <input type="hidden" name="fileInd" value="${ind}">
                                <input type="hidden" name="spfStaid" value="${spf_staid}">
                                <input type="hidden" name="spfMilid" value="${spf_milid}">
                                <input type="hidden" name="projectName" value="${pdto.projectName}">
                                <input type="hidden" name="spfFilecode" value="${spfFilecode}">
                                <input type="hidden" name="bfcId" value="28">
                                <input type="hidden" name="orderCode" value="${orderCode}">
                                <input type="hidden" name="fbCode" value="${fbCode}">
                                <input type="hidden" name="fileParentId" value="${fileId}">
                                <input type="text" name="spfF1" lay-verify="spfF1" value="${pdto.projectName}">
                            </td>
                        </tr>
                        <tr>
                            <td>业主单位</td>
                            <td colspan="2">
                                <input type="text" name="spfF2" lay-verify="spfF2" value="${pdto.owerCompany}">
                            </td>
                        </tr>
                        <tr>
                            <td>监理单位</td>
                            <td colspan="2">
                                <input type="text" name="spfF3" lay-verify="spfF3"
                                       value="${pdto.supervisorCompanyName}">
                            </td>
                        </tr>
                        <tr>
                            <td>承建单位</td>
                            <td colspan="2">
                                <input type="text" name="spfF4" lay-verify="spfF4" value="${cj}">
                            </td>
                        </tr>
                        <tr>
                            <td>厂商</td>
                            <td colspan="2">
                                <input type="text" name="spfF6" lay-verify="spfF6">
                            </td>
                        </tr>
                        <tr>
                            <td>设备名称</td>
                            <td colspan="2">
                                <select name="spfF8" lay-ignore id="seldevname">
                                    <option value="">请选择设备</option>
                                    <#list devlist as v>
                                        <option no="${v[0]}" value="${v[2]}">${v[2]}</option>
                                    </#list>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>检验日期</td>
                            <td colspan="2">
                                <input type="text" name="spfF5" lay-verify="spfF5" id="spfF5">
                            </td>
                        </tr>
                        <tr>
                            <td>检验地点</td>
                            <td colspan="2">
                                <input type="text" name="spfF7" lay-verify="spfF7">
                            </td>
                        </tr>
                        <tr>
                            <td style="border: 1px  solid  #CCCCCC;">外包装</td>
                            <td style="border: 1px  solid  #CCCCCC;">
                                <ul>
                                    <li>
                                        挤压变形
                                        <select name="spfF9" lay-ignore>
                                            <option selected="true">无</option>
                                            <option>有</option>
                                        </select>
                                    </li>
                                    <li>
                                        破损
                                        <select name="spfF10" lay-ignore>
                                            <option selected="true">无</option>
                                            <option>有</option>
                                        </select>
                                    </li>
                                    <li>封口是否开封
                                        <select name="spfF11" lay-ignore>
                                            <option selected="true">无</option>
                                            <option>有</option>
                                        </select>
                                    </li>
                                    <li>表面字迹
                                        <select name="spfF12" lay-ignore>
                                            <option selected="true">清晰</option>
                                            <option>模糊</option>
                                        </select>
                                    </li>
                                    <li>受潮
                                        <select name="spfF13" lay-ignore>
                                            <option selected="true">无</option>
                                            <option>有</option>
                                        </select>
                                    </li>
                                    <li>腐蚀
                                        <select name="spfF14" lay-ignore>
                                            <option selected="true">无</option>
                                            <option>有</option>
                                        </select>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td style="border: 1px  solid  #CCCCCC;">内部设备</td>
                            <td style="border: 1px  solid  #CCCCCC;">
                                <ul>
                                    <li>
                                        挤压变形
                                        <select name="spfF15" lay-ignore>
                                            <option selected="true">无</option>
                                            <option>有</option>
                                        </select>
                                    </li>
                                    <li>
                                        破损
                                        <select name="spfF16" lay-ignore>
                                            <option selected="true">无</option>
                                            <option>有</option>
                                        </select>
                                    </li>
                                    <li>表面漆层划伤
                                        <select name="spfF17" lay-ignore>
                                            <option selected="true">无</option>
                                            <option>有</option>
                                        </select>
                                    </li>
                                    <li>设备固定螺丝是否有拆装的痕迹
                                        <select name="spfF18" lay-ignore>
                                            <option selected="true">无</option>
                                            <option>有</option>
                                        </select>
                                    </li>
                                    <li>包装材料（泡沫垫层，包装袋等）
                                        <select name="spfF19" lay-ignore>
                                            <option selected="true">完整</option>
                                            <option>破损</option>
                                        </select>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td style="border: 1px  solid  #CCCCCC;">资料</td>
                            <td style="border: 1px  solid  #CCCCCC;">
                                <ul>
                                    <li>
                                        合格证
                                        <select name="spfF20" lay-ignore>
                                            <option selected="true">有</option>
                                            <option>无</option>
                                        </select>
                                    </li>
                                    <li>
                                        保修卡
                                        <select name="spfF21" lay-ignore>
                                            <option selected="true">有</option>
                                            <option>无</option>
                                        </select>
                                    </li>
                                    <li>使用手册
                                        <select name="spfF22" lay-ignore>
                                            <option selected="true">有</option>
                                            <option>无</option>
                                        </select>
                                    </li>
                                    <li>其他
                                        <input type="text" name="spfF23"  placeholder="...">
                                    </li>
                                </ul>
                            </td>
                        </tr>
                        <tr></tr>
                        <tr>
                            <td>数量</td>
                            <td colspan="2"><input type="text" name="spfF24" lay-verify="spfF24"></td>
                        </tr>
                        <tr>
                            <td>型号</td>
                            <td colspan="2"><input type="text" name="spfF25" lay-verify="spfF25"></td>
                        </tr>
                        <tr>
                            <td>序列号</td>
                            <td colspan="2"><input type="text" name="spfF26" lay-verify="spfF26"></td>
                        </tr>
                        <tr>
                            <td>序列号验证方式</td>
                            <td colspan="2"><input type="text" name="spfF27" lay-verify="spfF27"></td>
                        </tr>
                        <tr>
                            <td>合同参数对比</td>
                            <td colspan="2"><input type="text" name="spfF28" lay-verify="spfF28"
                                                   placeholder="主要记录实际与合同不符的内容"></td>
                        </tr>
                    </table>

                </div>
                <div class="popUpBtn center">
                    <button type="button" class="blue bgnone close">关闭</button>
                    <button type="button" class="bluebg white" lay-submit lay-filter="submit">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>


<script>
    var layer;
    var form;
    var laydate;
    var upload;
    var uploadListIns;
    layui.use(['form', 'laydate', 'layer', 'upload'], function () {
        layer = layui.layer;
        form = layui.form;
        laydate = layui.laydate;
        upload = layui.upload;
        // 日期
        laydate.render({
            elem: '#spfF5',
            value: new Date(),
            trigger: 'click',
            format: 'yyyy年MM月dd日'
        });
        // 表单校验
        //$('form').initVerify(form);
        //监听提交
        form.on('submit(submit)', function (data) {
            layerAjax('/supervisor/projectManager/addFormFile', data.field, '', function (d) {
                if (d.flag == true) {
                    var spfId = d.data.spfId;// fmid
                    var fpid = d.data.fpid;// fpid
                    POBrowser.openWindowModeless('/sys/office/openword?ft=2&fmid=' + spfId + '&fpid=' + fpid, 'width=1200px;height=800px;', '{}')
                } else {
                    layer.msg(d.msg, {icon: 2});
                }
            });
            return false;
        });
        $('.close').click(function () {
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        });
        $("#seldevname").change(function () {
            var _b = $(this).find("option:selected").attr("no");
            if (_b) {
                _b = "-" + _b;
            } else {
                _b = "";
            }
            $("input[name=orderCode]").val($("#orderCode").attr("code") + _b);
        })
        form.render();
    });
</script>


<!-- 底部结束 -->
</body>
</html>
